<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <h1>用户信息调用</h1>
    用户：
    <p id="Account"></p>
    密码：
    <p id="Password"></p>
    重复密码：
    <p id="Pwd"></p>
    身份证号：
    <p id="Card"></p>


</body>
<script>
    function Userinfo() {
        var name, value;
        var str = location.href;
        var num = str.indexOf("?")
        str = str.substr(num + 1);

        var arr = str.split("&");
        for (var i = 0; i < arr.length; i++) {
            num = arr[i].indexOf("=");
            if (num > 0) {
                name = arr[i].substring(0, num);
                value = arr[i].substr(num + 1);
                this[name] = value;
            }
        }
    }
    var Request = new Userinfo();
    document.getElementById("Account").innerHTML = Request.Account;
    document.getElementById("Password").innerHTML = Request.Password;
    document.getElementById("Pwd").innerHTML = Request.Pwd;
    document.getElementById("Card").innerHTML = Request.Card;
</script>

</html>